import request from '@/utils/request'

// 申请加入社团
export function createClubApply(data) {
  return request({
    url: '/api/club_application/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

// 获取申请列表
export function getApplyList(data) {
  return request({
    url: '/api/club_application/',
    method: 'get',
    params: data
  })
}

// 获取加入申请一级审核列表
export function getFirstCheckApply(data) {
  return request({
    url: '/api/club_application/first_check_list/',
    method: 'get',
    params: data
  })
}

// 获取加入申请二级审核列表
export function getSecondCheckApply(data) {
  return request({
    url: '/api/club_application/second_check_list/',
    method: 'get',
    params: data
  })
}

// 进行一级审核
export function firstCheckApply(id, data) {
  return request({
    url: '/api/club_application/' + id + '/first_check/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

// 进行二级审核
export function secondCheckApply(id, data) {
  return request({
    url: '/api/club_application/' + id + '/second_check/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}
